﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Stdby/ABM/MasterPageAbm/MasterPageABM.master"
    AutoEventWireup="true" CodeFile="cable.aspx.cs" Inherits="Stdby_ABM_cable" %>

<%@ Register Src="~/Seguridad/UserControl/SeguridadAutenticador.ascx" TagName="Autenticador"
    TagPrefix="aut" %>
<asp:Content ID="Content1" ContentPlaceHolderID="agregarScript" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Titulo" runat="Server">
    <div style="text-align: center;">
        <h1>
            Cable</h1>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CamposBusqueda" runat="Server">
    <div align="center">
        <table style="text-align: left; width: 90%;">
            <tr>
                <td>
                    Plant Number:
                </td>
            </tr>
            <tr>
                <td>
                    <asp:TextBox ID="txtBuscaMovex" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Descripción:
                </td>
            </tr>
            <tr>
                <td>
                    <asp:TextBox ID="txtBuscaDescripcion" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Inactivo:
                </td>
            </tr>
            <tr>
                <td>
                    <asp:DropDownList ID="ddlBusquedaInactivo" runat="server" Width="100%">
                        <asp:ListItem>No</asp:ListItem>
                        <asp:ListItem>Si</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="BotonBusqueda" runat="Server">
    <asp:Button ID="btnBuscar" runat="server" Text="Buscar" OnClick="btnBuscar_Click"
        Width="60%" />
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="tituloOperacion" runat="Server">
    <asp:Label ID="lblNuevo" runat="server" Text="Nuevo"></asp:Label>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="GuardarDatos" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table class="tablaDatos">
                <tr>
                    <td style="width: 20%;">
                        Plant Number:
                    </td>
                    <td style="width: 30%;">
                        <asp:TextBox ID="txtMovex" runat="server" Width="80%"></asp:TextBox>
                        <asp:Label ID="lblMovex" runat="server" Text="*" Visible="false" ForeColor="#FF0000"></asp:Label>
                    </td>
                    <td style="width: 20%;">
                        Descripción:
                    </td>
                    <td style="width: 30%;">
                        <asp:TextBox ID="txtDescripcion" runat="server" Width="80%"></asp:TextBox>
                        <asp:Label ID="lblDescripcion" runat="server" Text="*" Visible="false" ForeColor="#FF0000"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        Cable MM:
                    </td>
                    <td>
                        <asp:TextBox ID="txtCableMM" runat="server" Width="80%"></asp:TextBox>
                        <asp:Label ID="lblCableMM" runat="server" Text="*" Visible="false" ForeColor="#FF0000"></asp:Label>
                    </td>
                    <td>
                        Voltage:
                    </td>
                    <td>
                        <asp:RadioButtonList ID="rblVoltage" runat="server" RepeatDirection="Horizontal"
                            Width="80%">
                            <asp:ListItem Selected="True">HV</asp:ListItem>
                            <asp:ListItem>LV</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        Total Mts.:
                    </td>
                    <td>
                        <asp:TextBox ID="txtTotalMts" runat="server" Width="80%"></asp:TextBox>
                        <asp:Label ID="lblTotalMts" runat="server" Text="*" Visible="false" ForeColor="#FF0000"></asp:Label>
                    </td>
                    <td>
                        Inactivo:
                    </td>
                    <td>
                        <asp:CheckBox ID="cbxInactivo" runat="server" Text=" " />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Guardar" runat="Server">
    <asp:Button ID="btnGuardar" runat="server" Text="Guardar" Width="10%" OnClick="btnGuardar_Click"
        OnClientClick="confirmar();" Style="margin-right: 20px;" />
    <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" Width="10%" OnClick="btnCancelar_Click" />
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="Grilla" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <asp:GridView ID="Grilla" runat="server" PageSize="20" AllowPaging="True" EmptyDataText="No hay Datos."
                ShowHeaderWhenEmpty="True" Width="100%" AutoGenerateColumns="False" OnPageIndexChanging="grilla_PageIndexChanging"
                OnSelectedIndexChanged="Grilla_SelectedIndexChanged" OnRowDataBound="Grilla_RowDataBound"
                DataKeyNames="Id" CellSpacing="2" BorderStyle="Solid" BorderWidth="2px" BorderColor="#2262FA"
                AllowSorting="True" OnSorting="Grilla_Sorting">
                <Columns>
                    <asp:CommandField ShowSelectButton="True" SelectImageUrl="~/App_Themes/pencil.ico"
                        SelectText="Editar" ButtonType="Image">
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:CommandField>
                    <asp:BoundField DataField="Movex" HeaderText="Plant Number" SortExpression="2" />
                    <asp:BoundField DataField="Descripcion" HeaderText="Descripción" SortExpression="3" />
                    <asp:BoundField DataField="CableMM" HeaderText="Cable MM" SortExpression="4" HtmlEncode="False" />
                    <asp:BoundField DataField="Voltage" HeaderText="Voltage" SortExpression="5" />
                    <asp:BoundField DataField="TotalMts" HeaderText="Total Mts." SortExpression="6" HtmlEncode="False" />
                    <asp:CheckBoxField DataField="DeBaja" HeaderText="Inactivo" SortExpression="7">
                        <HeaderStyle Width="8%" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    </asp:CheckBoxField>
                </Columns>
                <HeaderStyle BackColor="#2262FA" Font-Bold="True" Font-Size="Small" ForeColor="White"
                    Height="30px" HorizontalAlign="Center" VerticalAlign="Middle" />
                <PagerStyle BackColor="#2262FA" Font-Bold="True" Font-Size="Small" ForeColor="White"
                    Height="10px" HorizontalAlign="Center" VerticalAlign="Middle" />
                <SelectedRowStyle BackColor="#999999" Font-Bold="True" Font-Size="Small" ForeColor="White"
                    Height="20px" VerticalAlign="Middle" />
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
    <aut:Autenticador ID="Autenticacion" runat="server" PermisosRequeridos="ABM" />
</asp:Content>
